#
# Copyright (C) [2024] Xingyun Integrated Circuit, Inc.
#
#   GreenCode was a private technology asset of Xingyun Integrated Circuit， Inc （Confidential）
#   Author :  Shawn.Tan
#   Date : 2025.10.28
#
#   History : Initial Version 2025.10.28
#
#
from base.SortableObject import SortableObject


# Provide a FunctionWrapper to wrap a non-sortable object
# so it can be sortable
class FunctionWrapper(SortableObject):
    def __init__(self, function):
        super().__init__()
        self.function = function
        self.sortableName = str(function)

    def returnFunction(self):
        return self.function

    def display(self):
        print("function name=%s" % self.sortableName)
